<div id="countrys">
	 <table width="100%" border="0" cellspacing="0" cellpadding="0">
		<?
            $isStarted = false;
            $divisor = 7;
            $locales = Lang::getArrayLocales();
            $arrayLangs = Lang::getSupportedLanguages();
		    for($i = 0; $i < count($arrayLangs); $i++){
		    	$tempLang = $arrayLangs[$i];
		    	if($isStarted){
		    		echo $i % $divisor == 0 ? '</tr><tr>' : '';
		    	} else {
		    		$isStarted = true;
		    		echo '<tr>';
		    	}
		?>
			    <td width="100" valign="top" align="left">
			      <table class="useCursor tableCountry" border="0" onclick="changeLocale('<?= $tempLang ?>')">
			        <tr><td><img src="<?= $lang->getFlag($tempLang) ?>" border="0" /> <?= h::showClock($tempLang, $locales[$tempLang]) ?></td></tr>
			        <tr><td><?= h::out($lang->getCountryName($tempLang)) ?></td></tr>
			      </table>
			    </td>
	    <?
			    if(!(($i + 1) % $divisor == 0)){
		?>
                            <td><img src="../img/spacer.gif" width="25" height="1" /></td>
		<?
		        }
		    }
		?>
	</table>
</div>
